package test45;

import java.io.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ws
 * Date: 2023-05-18
 * Time: 15:23
 */
public class Main {
    static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));

    public static void main(String[] args) throws IOException {
        String str = null;
        while ((str = br.readLine()) != null) {
            String[] strs = str.split(" ");
            String A = strs[0];
            String B = strs[1];
            int[] arr = new int[26];
            for (int i = 0; i < A.length(); i++) {
                arr[A.charAt(i) - 'A']++;
            }
            for (int i = 0; i < B.length(); i++) {
                arr[B.charAt(i) - 'A']--;
            }
            boolean flag = true;
            for (int i = 0; i < 26; i++) {
                if (arr[i] < 0) {
                    flag = false;
                    bw.write("No\n");
                    break;
                }
            }
            if (flag) {
                bw.write("Yes\n");
            }
        }
        bw.flush();
        bw.close();
        br.close();
    }
}
